package soft863.com.bean;

import org.apache.hadoop.io.Writable;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

public class Bean implements Writable {
    int upflow;
    int downflow;
    int sum;

    public Bean() {
    }

    public int getUpflow() {
        return upflow;
    }

    public void setUpflow(int upflow) {
        this.upflow = upflow;
    }

    public int getDownflow() {
        return downflow;
    }

    public void setDownflow(int downflow) {
        this.downflow = downflow;
    }

    public int getSum() {
        return sum;
    }

    public void setSum(int sum) {
        this.sum = sum;
    }

    @Override
    public String toString() {
        return "Bean{" +
                "upflow=" + upflow +
                ", downflow=" + downflow +
                ", sum=" + sum +
                '}';
    }


    public void write(DataOutput dataOutput) throws IOException {
        dataOutput.write(upflow);
        dataOutput.write(downflow);
        dataOutput.write(sum);
    }

    public void readFields(DataInput dataInput) throws IOException {

    }
}
